IInteraction interface¶
Defined in
Namespace: ReactiveUI.Binding
Assembly: ReactiveUI.Binding.dll
Full name: ReactiveUI.Binding.IInteraction<T1, T2>
Modifiers: public abstract
Summary¶
Represents an interaction between collaborating application components.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481
Remarks¶
Interactions allow collaborating components in an application to ask each other questions. Typically, interactions allow a view model to get the user's confirmation from the view before proceeding with some operation. The view provides the interaction's confirmation interface in a handler registered for the interaction.
Interactions have both an input and an output. The interaction's input provides handlers the information they require to ask a question. The handler then provides the interaction with an output as the answer.
Methods¶
| Name | Summary |
|---|---|
| RegisterHandler | Registers a synchronous interaction handler. |
| Handle | Handles an interaction and asynchronously returns the result. |